package com.zb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zb.entity.AccounLoginInfo;
import com.zb.entity.ZjFactoryRecharge;
import com.zb.extend.FactoryRechargeExtend;
import com.zb.vo.FactoryBalanceAdjustVo;
import com.zb.vo.FactoryRechargeCheckListSearchVo;
import com.zb.vo.FactoryRechargeListSearchVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 厂商充值表 服务类
 * </p>
 *
 * @author WEN
 * @since 2024-02-28
 */
public interface ZjFactoryRechargeService extends IService<ZjFactoryRecharge> {

    /**
     * 保存平台调整余额记录
     * @param loginInfo
     * @param adjustVo
     */
    void save(AccounLoginInfo loginInfo, Long factoryId, FactoryBalanceAdjustVo adjustVo);

    /**
     * 获取商家详情之充值记录
     * @param factoryId 品牌商家ID
     * @param searchVo
     * @return
     */
    Map<String, Object> getFactoryRechargeList(Long factoryId, FactoryRechargeListSearchVo searchVo);

    /**
     * 获取商家充值审核列表
     * @param custAccId 商家ID
     * @param search 搜索关键词
     * @return
     */
    List<FactoryRechargeExtend> getFactoryRechargeCheckList(Long custAccId, FactoryRechargeCheckListSearchVo search);

    /**
     * 获取商家充值审核列表总记录数
     * @param custAccId 商家ID
     * @param search 搜索关键词
     * @return
     */
    long getFactoryRechargeCheckListCount(Long custAccId, FactoryRechargeCheckListSearchVo search);

}
